<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<f:view>
	<head>
	<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
	<title>Edit Billboard</title>
	</head>
	<body bgcolor="#7587ad">
	<h:form>
		<table>
			<tr>
				<td><h:outputText value="Billboard Name" /></td>
				<td><h:inputTextarea value="#{editBillboard.name}" style="width: 300px; height: 60px"/></td>
			</tr>
			<tr>
				<td><h:outputText value="Ticker Text" /></td>
				<td><h:inputTextarea value="#{editBillboard.tickerText}" style="width: 300px; height: 60px"/></td>
			</tr>
			<tr>

				<td><h:outputText value="Slideshow Text" /></td>

				<td><h:selectOneListbox value="#{editBillboard.selectedSSText}" style="width: 300px">
					<f:selectItems value="#{editBillboard.slideshowCollection}"/>
				</h:selectOneListbox></td>

			</tr>

		</table>
		<br />
		
		
		<h:commandButton value="Edit Selected Slide" action="#{editBillboard.editSlideAction}"/>
		<h:commandButton value="Delete Selected Slide" action="#{editBillboard.deleteSlideAction}"/>
		<h:commandButton value="Create New Slide" action="#{editBillboard.addSlideAction}"/>
		<br />
		<h:selectBooleanCheckbox value="#{editBillboard.isPublished}" /><h:outputText value="Publish this Billboard"/>
		<br />

		<h:commandButton value="Save" action="#{editBillboard.saveAction}"/>
		<h:commandButton value="Cancel" action="cancel" />
	</h:form>
	</body>
</f:view>
</html>